package net.huashitong.ssydt.provider.msg.mapper;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.msg.entity.SsMsgUserMessage;
import net.huashitong.ssydt.msg.entity.vo.MessageReadInVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsMsgUserMessageMapper extends LongMapper<SsMsgUserMessage> {

    /**
     * 批量插入
     *
     * @param ssMsgUserMessages
     * @return
     */
    int batchInsert(List<SsMsgUserMessage> ssMsgUserMessages);


    SsMsgUserMessage getByUserIdWithMessageId(SsMsgUserMessage message);

    int updateRead(MessageReadInVO messageReadInVO);
}